import request from '@/utils/request'

// 查询项目情况列表
export function listFundProjectStatus(query) {
  return request({
    url: '/operation/fundProjectStatus/list',
    method: 'get',
    params: query
  })
}

// 查询项目情况详细
export function getFundProjectStatus(id) {
  return request({
    url: '/operation/fundProjectStatus/' + id,
    method: 'get'
  })
}

// 保存项目情况
export function saveFundProjectStatus(data) {
  return request({
    url: '/operation/fundProjectStatus/save',
    method: 'post',
    data: data
  })
}

// 删除项目情况
export function delFundProjectStatus(id) {
  return request({
    url: '/operation/fundProjectStatus/' + id,
    method: 'delete'
  })
}

// 导出项目情况
export function exportFundProjectStatus(query) {
  return request({
    url: '/operation/fundProjectStatus/export',
    method: 'get',
    params: query
  })
}

// 批量保存
export function batchSave(data) {
  return request({
    url: '/operation/fundProjectStatus/batchSave',
    method: 'post',
    data: data
  })
}

// 根据监测表ID获取项目情况列表
export function getByMonitorId(monitorId) {
  return request({
    url: '/operation/fundProjectStatus/getByMonitorId',
    method: 'get',
    params: { monitorId }
  })
}

// 根据监测表ID获取项目情况列表
export function findInfoListByMonitorId(monitorId) {
  return request({
    url: '/operation/fundProjectStatus/findInfoListByMonitorId',
    method: 'get',
    params: { monitorId }
  })
}

// 获取序号最大值
export function getMaxNum(monitorId) {
  return request({
    url: '/operation/fundProjectStatus/getMaxNum/' + monitorId,
    method: 'get'
  })
}
// 带出默认数据
export function getDefaultData(fundId, monitorId) {
  return request({
    url: '/operation/fundProjectStatus/getDefaultData/' + fundId + '/' + monitorId,
    method: 'get'
  })
}

